﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
using System.Data.SqlClient;

namespace BLL
{
    public  class InquiryBLL
    {
        /// <summary>
        /// 询价记录表
        /// </summary>
        /// <param name="parame"></param>
        /// <returns></returns>
        public bool AddInquiry(params SqlParameter[] parame)
        {
            Inquiry inqu = new Inquiry();
            return new InquiryDAL().Add(inqu, parame);
        }
        public Inquiry GetInquiryById(SqlParameter[] param)
        {
            return new InquiryDAL().GetList<Inquiry>(param).FirstOrDefault();
        }
    }
}
